package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.ReservationDto;
import com.zzyl.vo.ReservationVo;
import com.zzyl.vo.TimeCountVo;

import java.util.List;

/**
 * @Description CustomerReservationService
 * @Author Lwj
 * @Date 2024-08-31-16:30
 */
public interface CustomerReservationService {
    /**
     * 查询取消预约数量
     * @return
     */
    Integer getCount(Long updateBy);

    /**
     * 询每个时间段剩余预约次数
     * @param tine
     * @return
     */
    List<TimeCountVo> countBytime(Long tine);

    /**
     * 新增预约
     * @param reservationDto
     */
    void add(ReservationDto reservationDto);

    /**
     * 分页查询
     * @param name
     * @param pageNumb
     * @param pageSize
     * @param status
     * @return
     */
    PageResponse<ReservationVo> getPage(String name, Integer pageNumb, Integer pageSize, Integer status);

    /**
     * 取消预约
     * @param id
     */
    void cancle(Long id);
}
